package com.ruiysoft.service.sys;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruiysoft.entity.sys.SysShopPersonnel;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author huazengguang
 * @since 2018-11-01
 */
public interface ISysShopPersonnelService extends IService<SysShopPersonnel> {

    void insertIgnore(SysShopPersonnel sysShopPersonnel);

    Page<SysShopPersonnel> selectPersonnelList(@NotNull @Valid Integer pageStart, @NotNull @Valid Integer pageSize, @NotNull @Valid Long shopId);

    Page<SysShopPersonnel> selectPersonnelRalationList(@NotNull @Valid Integer pageStart, @NotNull @Valid Integer pageSize, @NotNull @Valid Long shopId);

    Page<SysShopPersonnel> getPersonnelByParentId(Integer pageStart, Integer pageSize, Long shopId, Long userId);
}
